Skip to content

Conversation

@al-noori
Copy link
Contributor

This PR takes over a part to change all occurences of the image(device, int, int) constructor with the image(device, gc, int, int) constructor.

Within examples/snippets, almost all usages of the stated constructor are now replaced by an ImageGcDrawer and the Image(device, gc int, int) constructor afterwards. This replacement has/could not be made for the snippets {387, 215, 292, 95, 139} and partially not for 141. The details for them are commented here: vi-eclipse/Eclipse-Platform#310 (comment).

Almost all usages of the stated constructor with an additional GC initialization are now replaced by an ImageGcDrawer and the Image(device, gc int, int) constructor afterwards for the snippets. This replacement has/could not be made for the snippets {387, 215, 292, 95, 139} and partially not for 141.
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

Test Results

  118 files  ±0    118 suites  ±0   17m 14s ⏱️ + 2m 1s
4 653 tests ±0  4 635 ✅  - 1  18 💤 +1  0 ❌ ±0 
  338 runs  ±0    334 ✅ ±0   4 💤 ±0  0 ❌ ±0 

Results for commit e125f9e. ± Comparison against base commit 77f9654.

This pull request skips 1 test.
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser_IE ‑ test_setUrl_remote_with_post

@akoch-yatta
Copy link
Contributor

I got the following difference when opening Snippet10 on a 175% monitor with master (left) and this PR (right):
image

Didn't check the other Snippets yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace Image(device,int,int) constructor in examples/snippets

2 participants